<?php
	$app->get('/doc/health/info', function() use($app){
		$app->render('info.php', array(
			'name' => 'health/info',
			'summary' => '我的健康数据',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'from',
					'ismust' => true,
					'type' => 'int',
					'summary' => 'from'
				),
				array(
					'name' => 'to',
					'ismust' => true,
					'type' => 'int',
					'summary' => 'to'
				),
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '会员id'
				)
			)
		));
	});
	$app->get('/doc/health/baseinfo', function() use($app){
		$app->render('info.php', array(
			'name' => 'health/baseinfo',
			'summary' => '我的基本信息',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'from',
					'ismust' => true,
					'type' => 'int',
					'summary' => 'from'
				),
				array(
					'name' => 'to',
					'ismust' => true,
					'type' => 'int',
					'summary' => 'to'
				),
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '会员id'
				)
			)
		));
	});
	$app->get('/doc/health/info/7day', function() use($app){
		$app->render('info.php', array(
			'name' => 'health/info/7day',
			'summary' => '我的健康数据七天数据',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '会员id'
				),array(
					'name' => 'column',
					'ismust' => true,
					'type' => 'string',
					'summary' => '查询维度（查询7天的该维度数据）'
				),array(
					'name' => 'type',
					'ismust' => true,
					'type' => 'string',
					'summary' => '1 天  2周  3月'
				)
			)
		));
	});
	$app->get('/doc/health/baseinfo/7day', function() use($app){
		$app->render('info.php', array(
			'name' => 'health/baseinfo/7day',
			'summary' => '我的基本信息七天数据',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '会员id'
				),array(
					'name' => 'column',
					'ismust' => true,
					'type' => 'string',
					'summary' => '查询维度（查询7天的该维度数据）'
				),array(
					'name' => 'type',
					'ismust' => true,
					'type' => 'string',
					'summary' => '1 天  2周  3月'
				)
			)
		));
	});
	$app->get('/doc/health/baseinfo/edit', function() use($app){
		$app->render('info.php', array(
			'name' => 'health/baseinfo/edit',
			'summary' => '添加\编辑我的基本信息',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '会员id'
				),
				array(
					'name' => 'healthid',
					'ismust' => false,
					'type' => 'int',
					'summary' => '数据id，编辑用'
				),
				array(
					'name' => 'bust',
					'ismust' => false,
					'type' => 'string',
					'summary' => '胸围'
				),
				array(
					'name' => 'waist',
					'ismust' => false,
					'type' => 'string',
					'summary' => '腰围'
				),
				array(
					'name' => 'hipline',
					'ismust' => false,
					'type' => 'string',
					'summary' => '臀围'
				),
				array(
					'name' => 'weight',
					'ismust' => false,
					'type' => 'string',
					'summary' => '体重'
				),
				array(
					'name' => 'fat_rate',
					'ismust' => false,
					'type' => 'string',
					'summary' => '体脂比'
				),
				array(
					'name' => 'thigh',
					'ismust' => false,
					'type' => 'string',
					'summary' => '大腿围'
				),
				array(
					'name' => 'shoulder_width',
					'ismust' => false,
					'type' => 'string',
					'summary' => '肩宽'
				),
			    array(
			        'name' => 'arm',
			        'ismust' => false,
			        'type' => 'string',
			        'summary' => '臂围'
			    ),
				array(
					'name' => 'sebum',
					'ismust' => false,
					'type' => 'string',
					'summary' => '皮脂厚度'
				)
			)
		));
	});
	$app->get('/doc/health/info/edit', function() use($app){
		$app->render('info.php', array(
			'name' => 'health/baseinfo/edit',
			'summary' => '添加\编辑我的健康信息',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '会员id'
				),
				array(
					'name' => 'healthid',
					'ismust' => false,
					'type' => 'int',
					'summary' => '数据id，编辑用'
				),
				array(
					'name' => 'age',
					'ismust' => false,
					'type' => 'string',
					'summary' => '年龄'
				),
				array(
					'name' => 'height',
					'ismust' => false,
					'type' => 'string',
					'summary' => '身高'
				)
			)
		));
	});
?>
